package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.SaleDataByDay;
import com.atguigu.jxc.entity.SaleList;
import com.atguigu.jxc.entity.SaleListGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * ClassName: SaleListGoodsDao
 * Description:
 * Date: 2022/1/17 21:28
 *
 * @version:
 * @since JDK 1.8
 */
@Repository
public interface SaleListGoodsDao {
    void saveSaleList(@Param("saleList")SaleList saleList);

    SaleList selectBySaleNumber(@Param("saleNumber")String saleNumber);

    void saveSaleListGoods(@Param("saleListGoods")SaleListGoods saleListGoods);

    List<SaleList> getSaleListGoods(@Param("saleNumber")String saleNumber, @Param("customerId")Integer customerId, @Param("state")Integer state,@Param("sTime") String sTime,@Param("eTime") String eTime);

    List<SaleListGoods> getGoodsList(@Param("saleListId")Integer saleListId);

    void deleteSaleList(@Param("saleListId")Integer saleListId);

    void deleteSaleListGoods(@Param("saleListId")Integer saleListId);

    void updateState(@Param("saleListId")Integer saleListId);

    List<Integer> getGoodsList1(@Param("goodsTypeId") Integer goodsTypeId,@Param("codeOrName") String codeOrName);

    List<SaleDataByDay> getSaleDataByDay(@Param("sTime")String sTime, @Param("eTime") String eTime);

    List<SaleDataByDay> getSaleDataByMonth(String sTime, String eTime);
}
